{extend name="public:layout" /}
{block name="title"}维修详情{/block}
{block name="head"}{/block}
{block name="body"}
<div class="wrapper wrapper-content">
    {php}$type=['维修','保养']{/php}
    <div class="ibox">
        <div class="ibox-content">
            <table class="table table-bordered">
                <thead>
                <tr>
                    <th colspan="6">车辆{$type[$info.ser_type]}详情</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td width="80">车牌号</td>
                    <td>{$info.car_sn}</td>
                    <td width="80">提交人</td>
                    <td>{:get_field_value('user','name',['uid'=>$info.apply_uid])}</td>
                    <td width="80">维修人</td>
                    <td>{:get_field_value('user','name',['uid'=>$info.repair_uid])}</td>
                </tr>
                <tr>
                    <td width="80">提交时间</td>
                    <td>{:date('Y-m-d h:i:s',$info.create_time)}</td>
                    <td width="80">开始时间</td>
                    <td>{$info.ser_start_time}</td>
                    <td width="80">结束时间</td>
                    <td>{$info.ser_end_time}</td>
                </tr>
                <tr>
                    <td>{$type[$info.ser_type]}原因</td>
                    <td colspan="5">{$info.title}</td>
                </tr>
                <tr>
                    <td>轮胎记录</td>
                    <td colspan="5">左前：{$info.shoe1}&nbsp;&nbsp;右前：{$info.shoe2}&nbsp;&nbsp;左后：{$info.shoe3}&nbsp;&nbsp;右后：{$info.shoe4}</td>
                </tr>
                <tr>
                    <td>{$type[$info.ser_type]}费用</td>
                    <td colspan="5">{$info.service_money}</td>
                </tr>
                <tr>
                    <td>配件使用</td>
                    <td colspan="5">
                        <table class="table">
                            <thead>
                            <tr>
                                <th>配件名称</th>
                                <th>规格型号</th>
                                <th>单价</th>
                                <th>数量</th>
                            </tr>
                            </thead>
                            <tbody>
                            {volist name="info.ser_desc" id="vo"}
                            <tr>
                                <td>{$vo.parts_name}</td>
                                <td>{$vo.parts_model}</td>
                                <td>{$vo.parts_price}</td>
                                <td>{$vo.parts_num}</td>
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                    </td>
                </tr>
                {notempty name="info.ser_remarks"}
                <tr>
                    <td>备注</td>
                    <td colspan="5">{$info.ser_remarks}</td>
                </tr>
                {/notempty}
                </tbody>
            </table>
        </div>
    </div>
</div>
{/block}
{block name="script"}
{/block}